<?php 

require ('../include/web.init.inc.php');
extract ( $_POST);
header("Content-type: application/json");
$current_user_info = UserSession::getSessionInfo();
$input_data = array ('user_id'=>$current_user_info["user"]["id"],'content' => $content,'type'=>$type,'update_time'=>date("Y-m-d H:i:s",time()));
$module_id = Ask::addAsk ( $input_data );

// if($user_info){
$ret = json_encode(array("code"=>1,"data"=>array('a' => 1)));
// }else{
// 	$ret = json_encode(array("code"=>0,"msg"=>"用户名密码错误"));
// }

echo $ret;